package com.join.mybatis.bean;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;

import com.join.mybatis.method.JoinMethod;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author chengang
 */
public class MySqlInjector extends DefaultSqlInjector {
    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass) {
        List<AbstractMethod> methodList = super.getMethodList(mapperClass);
        methodList.add(new JoinMethod());
        return methodList;
    }
}
